﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TfsReports.Web.Helpers;

namespace TfsReports.Web.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewData["Message"] = "Welcome to ASP.NET MVC!";

            return View();
        }

        public ActionResult About()
        {
            return View();
        }

        public ActionResult Flush(string redirectAction, string redirectController)
        {
            Cache.Flush();
            return RedirectToAction(redirectAction, redirectController);
        }
    }
}
